package com.wxm.common.file.core.property;

import com.wxm.common.file.core.enm.FileSupplierEnum;
import com.wxm.common.file.core.service.supplier.AliyunOssService;
import com.wxm.common.file.core.service.supplier.SupplierBaseService;
import lombok.Data;

/**
 * <p>
 *      阿里云对象储存配置
 * </p>
 *
 * @author: wxm
 * @Date: 2022/1/27
 */
@Data
public class AliyunOssProperty extends UploadBaseProperty{
    /**
     * 端点
     */
    private String endpoint;

    /**
     * AccessKeyId
     */
    private String accessKeyId;

    /**
     * AccessKeySecret
     */
    private String accessKeySecret;

    /**
     * 桶
     */
    private String bucket;

    @Override
    public FileSupplierEnum fileSupplierEnum() {
        return FileSupplierEnum.ALI_YUN;
    }

    @Override
    public Class<? extends SupplierBaseService> supplierService() {
        return AliyunOssService.class;
    }
}
